package com.zr.service.driverclient;


import com.zr.vo.dispatch.DispatchAbnormalRecord;
import com.zr.vo.dispatch.DispatchTicket;
import com.zr.vo.order.OrderForm;

import java.util.List;

public interface MissionService {
    /**
     * 获取登录司机的当前任务
     *
     * @param carNumber
     * @return
     */
    List<DispatchTicket> getDisList(String carNumber);

    /**
     * 获取登录司机的历史任务
     *
     * @param carNumber
     * @return
     */
    List<DispatchTicket> getHisDisList(String carNumber);

    /**
     * 修改调度单状态信息
     *
     * @param dispatchTicket
     * @return
     */

    int editDispatchTicket(DispatchTicket dispatchTicket);

    /**
     * 更改订单状态
     *
     * @param orderForm
     * @return
     */
    int editOrderStatus(OrderForm orderForm);

    /**
     * 提货后重新获取信息
     *
     * @param dispatchTicket
     * @return
     */
    DispatchTicket getDisInfo(DispatchTicket dispatchTicket);

    /**
     * 订单全部确认后自动修改调度单状态的方法
     *
     * @param orderForm
     * @return
     */
    int editDispatchTicketFinal(OrderForm orderForm);

    /**
     * 异常提交
     *
     * @param dispatchAbnormalRecord
     * @return
     */
    int abnormal(DispatchAbnormalRecord dispatchAbnormalRecord);
}
